package com.dc.base.viewmodel;

import androidx.lifecycle.MutableLiveData;

import com.dc.base.bean.LoadingDialogBean;

/**
 * @author 冰柠檬dc
 */
public class LoadingDialogLiveData extends MutableLiveData<LoadingDialogBean> {

    private LoadingDialogBean bean = new LoadingDialogBean();

    public void setValue(boolean isShow) {
        bean.setShow(isShow);
        bean.setMsg("");
        setValue(bean);
    }

    public void setValue(boolean isShow, String msg) {
        bean.setShow(isShow);
        bean.setMsg(msg);
        setValue(bean);
    }
}
